#[allow(unused_imports)]
pub use anyhow::{anyhow,Context,Error,Result};

pub const VERSION:&str = env!("SSLASH_LOCAL_VERSION");

pub const PATH_CONFIG:&str = "config.toml";
pub const PATH_LOG:&str = "log.txt";
pub const LOG_MAX_BYTES:usize = 1048576;

pub const MOVES_CACHE_SIZE_MAX:usize = 1048576 * 512;

pub const CLIENT_MAX_NUMS:usize = 3;
pub type ClientId = usize;

pub const PATH_WHOLE_BIN:&str = "whole.bin";
pub const LERAN_WHOLE_MAX_TIMES:usize = 31250000;           // ~ 1000MB
pub const ENGINE_REPORT_MS:usize = 500;
pub const ENGINE_IDLE_MS:usize = 60;
pub const ENGINE_MAIN_MS:usize = 80;

pub const PROTOCOL_MAIN_MS:usize = 100;
pub const PROTOCOL_HTAKE_TIMEOUT_MS:usize = 2500;
pub const PROTOCOL_HREPLY_TIMEOUT_MS:usize = 2000;

pub const SERVER_LISTENER_MS:usize = 300;
pub const SERVER_IO_MS:usize = 100;
